

if exist "%VS90COMNTOOLS%..\IDE\devenv.exe" (
	set VISUAL_STUDIO_VERSION=%VS90COMNTOOLS%..\IDE\devenv.exe
)

if exist "%VS90COMNTOOLS%..\IDE\VCExpress.exe" (
	set VISUAL_STUDIO_VERSION=%VS90COMNTOOLS%..\IDE\VCExpress.exe
)

if exist "%VS100COMNTOOLS%..\IDE\devenv.exe" (
	set VISUAL_STUDIO_VERSION=%VS100COMNTOOLS%..\IDE\devenv.exe
)

if exist "%VS100COMNTOOLS%..\IDE\VCExpress.exe" (
	set VISUAL_STUDIO_VERSION=%VS100COMNTOOLS%..\IDE\VCExpress.exe
)


IF "%VISUAL_STUDIO_VERSION%" == "" (
  echo Can not find installed VisualStudio!
  pause
) 
rem else (
rem	echo VISUAL_STUDIO_VERSION=%VISUAL_STUDIO_VERSION%
rem )
